package cn.iocoder.yudao.module.erp.controller.admin.costinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 其他费用新增/修改 Request VO")
@Data
public class CostInfoSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25579")
    private Long id;

    @Schema(description = "费用类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "费用类型不能为空")
    private String type;

    @Schema(description = "关联公司", example = "23279")
    private Long customerId;

    @Schema(description = "资金类型：0收入，1支出", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "资金类型：0收入，1支出不能为空")
    private Integer amountType;

    @Schema(description = "金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "金额不能为空")
    private BigDecimal amount;

    @Schema(description = "费用日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "费用日期不能为空")
    private LocalDate getTime;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "附件")
    private String fileUrl;

}